//
//  FinalStepViewController.m
//  GroceryStoryboards
//
//  Created by Jose Luis Lopez Redondo on 16/03/14.
//  Copyright (c) 2014 Jose Luis Lopez. All rights reserved.
//

#import "FinalStepViewController.h"

@interface FinalStepViewController ()

@end

@implementation FinalStepViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)addPressed:(UIButton *)sender {

    if([self.parentViewController respondsToSelector:@selector(addGrocery)])
        [self.parentViewController performSelector:@selector(addGrocery)];
}

- (IBAction)editPressed:(UIButton *)sender {
    
    if([self.parentViewController respondsToSelector:@selector(restart)])
        [self.parentViewController performSelector:@selector(restart)];
}

@end
